import Vue from 'vue'
import Router from 'vue-router'

import login from '../components/login.vue'
import Index from '../components/Index.vue'

/*******************************用户模块***********************************/

import userlist       from '../components/user/Userlist.vue'
import adduser        from '../components/user/Adduser.vue'


/*******************************直播模块***********************************/

import ds_list       from '../components/direct/Ds_list.vue'




Vue.use(Router)


export default new Router({
  mode: 'history',
  routes: [
    {
        path: '/',
        name: 'Index',
        component: Index,
    },

    {
      path: '/login',
      name: 'Login',
      component: login,
    },

    {
          path: '/index',
          name: 'Index',
          component: Index,
          children:[
              {//用户列表
                  path: 'userlist',
                  name: 'Userlist',
                  component: userlist,
              },
              {//添加用户

                path: 'adduser',
                name: 'Adduser',
                component: adduser,

              },
              {//直播列表

                path: 'ds_list',
                name: 'Ds_list',
                component: ds_list,

              }



            ]
    },

  ]
})
